//
//  JNView.m
//  MyAdditions
//
//  Created by 宋高杰 on 2017/12/14.
//  Copyright © 2017年 宋高杰. All rights reserved.
//

#import "JNView.h"

@interface JNView ()

@property (nonatomic, strong) UILabel * label;

@end

@implementation JNView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor redColor];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
        self.label.textColor = [UIColor cyanColor];
        self.label.font = [UIFont systemFontOfSize:20];
        self.label.textAlignment = NSTextAlignmentCenter;
        self.label.center = self.center;
        [self addSubview:self.label];
    }
    return self;
}

- (void)setLabelString:(NSString *)labelString {
    self.label.text = @"哇哈哈哈";
}

@end
